<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<script type="text/javascript">
function showHint(str)
{
if (str.length==0)
  { 
  document.getElementById("txtHint").innerHTML="";
  return;
  }
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","avail.php?qno="+str,true);
xmlhttp.send();
}
</script>
</head>

<body>

<p align="right"><?php
session_start();
include"login.php";
if ( isset($_SESSION['uname'])){ 
include("config.php");
$qdat=getq();?>
 </p>
<form action="upload.php" method="post" name="program">

  <p>&nbsp;</p>
  <p align="center">
   <?php echo" <BR>$qdat[0]. $qdat[1]<BR><BR><BR>"; ?> 
    <textarea name="code" cols="100" rows="15" wrap="virtual">insert code here</textarea>
   <input type="hidden" name="qno" value="<?php $aq=retaq(); echo"$aq"; ?>"  /><br />
    <input type="submit" name="button" id="button" value="Submit" />
</p>
</form>
<?php }
?>
</body>
</html>
